<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
	<div id="package-${param.idx}" class="package <c:if test='${empty pkg and empty param.idx}'>hide</c:if> float-left ui-widget-content ui-corner-all">
		<div class="title-bar ui-widget-header ui-corner-all float-left full-width padding-vertical-half no-border-all margin-bottom">
			<div class="name float-left padding-horizontal font-13 font-white sans-serif  bold ">Package ${param.count}</div>
			<div class="trash <c:if test="${not empty param.packagesCount and param.packagesCount eq 1}">hide</c:if> float-right padding-horizontal font-15 font-white bold pointer" ref-id="#package-${param.idx}"><i class="icon-trash"></i></div>
		</div>
		<div class="errContainer font-12 errorMsg">
			<label for="package-weight-${param.idx}" class="error"></label>
		</div>						
   		<div class="margin-vertical-half float-left">
    		<label class="required label font-12  block float-left margin-top-half capitalize"><fmt:message key="msg.weight"/>:</label>
    		<input type="text" value="${pkg.weight}" name="packages.weight" id="package-weight-${param.idx}" class="text-field required number block float-left" placeholder='<fmt:message key="msg.weight"/>'/>
    		<label class="unit margin-top-half font-12 no-transform margin-left-half"> lbs</label>
   		</div>
		<div class="errContainer font-12 errorMsg">
			<label for="package-length-${param.idx}" class="error"></label>
			<label for="package-width-${param.idx}" class="error"></label>
			<label for="package-height-${param.idx}" class="error"></label>
		</div>						
   		<div class="margin-vertical-half float-left">
    		<label class="required label font-12  block float-left margin-top-half capitalize"><fmt:message key="msg.dimensions"/>:</label>
    		<input type="text" value="${pkg.length}" name="packages.length" id="package-length-${param.idx}" class="short-field required number" placeholder='L'/>
    		<span class="font-11 margin-all-half">X</span>
    		<input type="text" value="${pkg.width}" name="packages.width" id="package-width-${param.idx}" class="short-field   required number" placeholder='W'/>
    		<span class="font-11 margin-all-half">X</span>
    		<input type="text" value="${pkg.height}" name="packages.height" id="package-height-${param.idx}" class="short-field  required number" placeholder='H'/>
    		<label class="unit margin-top-half margin-left-half font-12 no-transform">inches</label>
   		</div>
		<div class="errContainer font-12 errorMsg">
			<label for="package-declared-value-${param.idx}" class="error"></label>
		</div>						
   		<div class="margin-vertical-half float-left">
    		<label class="label font-12  block float-left margin-top-half capitalize"><fmt:message key="msg.declared-value"/>:</label>
    		<input type="text" value="${pkg.value}" name="packages.value" id="package-declared-value-${param.idx}" class="text-field number" placeholder='<fmt:message key="msg.declared-value"/>'/>
    		<label class="unit margin-top-half font-12 no-transform margin-left-half">USD</label>
   		</div>
   		<div class="clear-both"></div>
	</div>	    		
